from django.urls import include, path
from rest_framework import routers
from .views import (
    DepartmentViewSet, MenuViewSet, MenuMetaViewSet, RoleViewSet,
)

router = routers.DefaultRouter()
router.register(r'dept', DepartmentViewSet)
router.register(r'menu-meta', MenuMetaViewSet)
router.register(r'menu', MenuViewSet)
router.register(r'role', RoleViewSet)

router.register(r'tenants', TenantViewSet)
router.register(r'tenant-packages', TenantPackageViewSet)

urlpatterns = [
    path('', include(router.urls)),
]